{% extends "base.html" %}

{% block content %}

{% if errors %}
<p>{{errors}}</p>
{% endif %}

<div class="inputInfoBox">
    <form method="post" action="{{post_url}}">
        <h2>{{table_head}}</h2>
        {% csrf_token %}
        {% for items in form %}
            <div class="inputBox">
                <label>{{ items.label }}</label>
                <p>{{ items }}</p>
            </div>
        {% endfor %}
        <input type="submit" value="{{post_name}}">
        <input type="hidden" name="next" value="{{ next }}">
        <br>
        <br>
    </form>
</div>

{% endblock %}